/*
 * Licensed to the Tai Ping Jin Ke
 *
 * Copyright (c) 2022 .
 * All rights reserved.
 * 项目名称：太平金科-基础组件封装层-SpringCloud组件封装-缺省实现
 * 版权说明：本软件属太平金融科技服务(上海)有限公司所有，在未获得太平金融科技服务(上海)有限公司正式授权情况下，任何企业和个人，不能获取、阅读、安装、传播本软件涉及的任何受知识产权保护的内容。
 */
package com.taipingframework.cloud.web.support;

import com.alibaba.nacos.api.config.ConfigChangeEvent;
import org.springframework.context.ApplicationEvent;

public class EnvironmentChangedEvent extends ApplicationEvent {
//CHECKSTYLE:OFF

    private static final long serialVersionUID = -458629153445503413L;

    private transient ConfigChangeEvent changedDetails;

    public EnvironmentChangedEvent(Object source) {
        super(source);
    }

    public EnvironmentChangedEvent(Object source, ConfigChangeEvent changedDetails) {
        this(source);
        this.changedDetails = changedDetails;
    }

    public ConfigChangeEvent getChangedDetails() {
        return changedDetails;
    }

    //CHECKSTYLE:ON
}
